package com.dys.servlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @Author: 疾风
 * @ClassName: Servlet02
 * @Description: Servlet02
 * @CreateDate: 2024/09/25
 * @Version: v1.0.0
 */
@WebServlet(name = "servlet02", urlPatterns = "/servlet02.do")
public class Servlet02 extends HttpServlet {
    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        System.out.println("执行Servlet02的service方法......");
        resp.setContentType("text/html;charset=utf-8");
        resp.getWriter().println("Servlet02响应成功");
    }
}
